Skip to content

[AutoPR azure-mgmt-msi]-generated-from-SDK Generation - Python-6340545#47077

Open
azure-sdk wants to merge 9 commits into
mainfrom
sdkauto/azure-mgmt-msi-6340545
Open

[AutoPR azure-mgmt-msi]-generated-from-SDK Generation - Python-6340545#47077
azure-sdk wants to merge 9 commits into
mainfrom
sdkauto/azure-mgmt-msi-6340545

Conversation

@azure-sdk
Copy link
Copy Markdown
Collaborator

Configurations: 'specification/msi/resource-manager/Microsoft.ManagedIdentity/ManagedIdentity/tspconfig.yaml', API Version: 2025-05-31-preview, SDK Release Type: beta, and CommitSHA: '7811c124444dfbd4bd149ad88f2648854dd9201b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6340545 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=2200 Submitted by: ibrahimmo@microsoft.com

…Identity/ManagedIdentity/tspconfig.yaml', API Version: 2025-05-31-preview, SDK Release Type: beta, and CommitSHA: '7811c124444dfbd4bd149ad88f2648854dd9201b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6340545 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Copilot AI review requested due to automatic review settings May 22, 2026 16:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This auto-generated PR updates azure-mgmt-msi to the 2025-05-31-preview API surface using the newer Python code generator/TypeSpec pipeline, including a client rename and packaging modernization.

Changes:

  • Migrates packaging from setup.py to pyproject.toml and updates metadata (_metadata.json, tsp-location.yaml).
  • Regenerates the mgmt client/operations/models for the 2025-05-31-preview API (including the ManagedIdentityClient rename).
  • Refreshes generated samples/tests and updates the changelog/version to 8.0.0b2.

Reviewed changes

Copilot reviewed 62 out of 62 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/resources/azure-mgmt-msi/tsp-location.yaml Adds TypeSpec source location metadata for regeneration provenance.
sdk/resources/azure-mgmt-msi/setup.py Removes legacy setuptools build script in favor of pyproject-based build.
sdk/resources/azure-mgmt-msi/README.md Updates stated minimum Python version (but still needs client-name alignment).
sdk/resources/azure-mgmt-msi/pyproject.toml Introduces PEP 621 packaging config and Azure SDK build metadata.
sdk/resources/azure-mgmt-msi/MANIFEST.in Adjusts packaged files list for the new layout.
sdk/resources/azure-mgmt-msi/generated_tests/conftest.py Updates generated test proxy sanitizers/header sanitization wiring.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_operations.py Regenerated sync operations tests using new client name and API defaults.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_operations_async.py Regenerated async operations tests using new client name and API defaults.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_system_assigned_identities_operations.py Regenerated sync system-assigned identity tests for new API.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_system_assigned_identities_operations_async.py Regenerated async system-assigned identity tests for new API.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_user_assigned_identities_operations.py Regenerated sync user-assigned identity tests for new API/model shape.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_user_assigned_identities_operations_async.py Regenerated async user-assigned identity tests for new API/model shape.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_federated_identity_credentials_operations.py Regenerated sync federated identity credential tests for new API/model shape.
sdk/resources/azure-mgmt-msi/generated_tests/test_managed_identity_federated_identity_credentials_operations_async.py Regenerated async federated identity credential tests for new API/model shape.
sdk/resources/azure-mgmt-msi/generated_samples/msi_operations_list.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/system_assigned_identity_get.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_create.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_delete.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_get.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_list_by_resource_group.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_list_by_subscription.py Updates sample to use ManagedIdentityClient and new example reference paths.
sdk/resources/azure-mgmt-msi/generated_samples/identity_update.py Updates sample payload shape to new properties nesting and new example paths.
sdk/resources/azure-mgmt-msi/generated_samples/federated_identity_credential_create.py Updates sample to use new client name and example paths.
sdk/resources/azure-mgmt-msi/generated_samples/federated_identity_credential_delete.py Updates sample to use new client name and example paths.
sdk/resources/azure-mgmt-msi/generated_samples/federated_identity_credential_get.py Updates sample to use new client name and example paths.
sdk/resources/azure-mgmt-msi/generated_samples/federated_identity_credential_list.py Updates sample to use new client name and example paths.
sdk/resources/azure-mgmt-msi/generated_samples/flexible_federated_identity_credential_get.py Adds new sample for flexible federated identity credential GET.
sdk/resources/azure-mgmt-msi/generated_samples/flexible_federated_identity_credential_create.py Adds new sample for flexible federated identity credential create.
sdk/resources/azure-mgmt-msi/CHANGELOG.md Adds 8.0.0b2 entry describing features/breaking changes for this regen.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_version.py Bumps package version to 8.0.0b2.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_client.py Regenerated sync client with new name and endpoint templating/send_request changes.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/_client.py Regenerated async client with new name and endpoint templating/send_request changes.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/init.py Updates public exports to the new sync client import.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/init.py Updates public exports to the new async client import.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_configuration.py Regenerated sync configuration for new API version/defaults and cloud settings.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/_configuration.py Regenerated async configuration for new API version/defaults and cloud settings.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_patch.py Replaces legacy handwritten patch scaffold with the new generator scaffold.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/_patch.py Updates async patch scaffold typing to modern list[str] style.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/init.py Regenerated operations package exports wiring for the new generator layout.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/_patch.py Updates operations patch scaffold typing to modern list[str] style.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/_user_assigned_identities_operations.py Removes legacy AutoRest-generated operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/_system_assigned_identities_operations.py Removes legacy AutoRest-generated operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/_federated_identity_credentials_operations.py Removes legacy AutoRest-generated operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/operations/init.py Regenerated async operations package exports wiring for the new generator layout.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/operations/_patch.py Updates async operations patch scaffold typing to modern list[str] style.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/operations/_user_assigned_identities_operations.py Removes legacy AutoRest-generated async operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/operations/_system_assigned_identities_operations.py Removes legacy AutoRest-generated async operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/operations/_federated_identity_credentials_operations.py Removes legacy AutoRest-generated async operations module (replaced by new layout).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/models/init.py Switches models exports from legacy _models_py3 to new _models.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/models/_models.py Adds new generated model definitions with new property nesting/flattening.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/models/_models_py3.py Removes legacy AutoRest model file.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/models/_enums.py Updates enums and introduces new IsolationScope enum.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/models/_patch.py Updates models patch scaffold typing to modern list[str] style.
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_utils/serialization.py Updates internal serialization utilities (typing modernization, safer basic type handling).
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_utils/init.py Updates generator header/comments.
sdk/resources/azure-mgmt-msi/azure/init.py Adds typing ignore for namespace package path extension.
sdk/resources/azure-mgmt-msi/azure/mgmt/init.py Adds typing ignore for namespace package path extension.
sdk/resources/azure-mgmt-msi/apiview-properties.json Updates cross-language mapping metadata for APIView.
sdk/resources/azure-mgmt-msi/_metadata.json Updates generation metadata for TypeSpec emitter/version and API version.
Comments suppressed due to low confidence (2)

sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_client.py:46

  • The client class has been renamed to ManagedIdentityClient, but the package's non-generated tests under sdk/resources/azure-mgmt-msi/tests/ still import/use ManagedServiceIdentityClient (verified by search), which will cause test/import failures. Update those tests (and any remaining docs) to use ManagedIdentityClient, or re-export an alias if backward compatibility is intended.
    sdk/resources/azure-mgmt-msi/azure/mgmt/msi/aio/_client.py:56
  • Async client class is now ManagedIdentityClient, but the package's non-generated async tests under sdk/resources/azure-mgmt-msi/tests/ still import/use azure.mgmt.msi.aio.ManagedServiceIdentityClient (verified by search), which will fail once this rename lands. Update those tests (and any remaining references) to ManagedIdentityClient.

Comment thread sdk/resources/azure-mgmt-msi/pyproject.toml
Comment thread sdk/resources/azure-mgmt-msi/README.md
mohamedyilmaz123 and others added 6 commits May 22, 2026 13:14
…Identity/ManagedIdentity/tspconfig.yaml', API Version: 2025-05-31-preview, SDK Release Type: beta, and CommitSHA: 'd309d869cbd0360d18e1787c1d931c68f7752b37' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6346556 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
- Fix ManagedIdentityClient -> ManagedServiceIdentityClient in test files
- Optimize CHANGELOG: consolidate moved properties, add migration notes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants